package com.qigao.mall.api;

import com.qigao.mall.jdbc.model.TbBonusDetail;
import com.qigao.mall.jdbc.model.TbTradeDetail;
import com.qigao.mall.jdbc.model.TbTradeDetailEntity;

import java.util.Date;
import java.util.List;

/**
 * @author luiz
 * @Title: com.qigao.mall.api
 * @ProjectName market-parent
 * @date 2020-06-2020-06-19 11:10
 * @Description:
 */
public interface TradeDetailService {
    void insertBatch(List<TbTradeDetailEntity> tbTradeDetails);

    void insert(TbTradeDetail tbTradeDetail);

    List<TbBonusDetail> selectUserTradeGroup(Date lastMonthStartDate, Date lastMonthEndDate, String compNo);

    List<TbBonusDetail> selectCompTradeGroup(Date lastMonthStartDate,Date lastMonthEndDate);

    void updateBatch(List<TbTradeDetail> tbTradeDetails);

    TbTradeDetail selectLastTradeDetailByUserNo(String userNo);

    List<TbBonusDetail> selectUserLevelByCompNo(String compNo);

    List<TbTradeDetail> selectCompTrade(Date lastMonthStartDate, Date lastMonthEndDate);
}
